package ldh.im.dto.base;

import ldh.im.dto.enmus.MessageType;

public abstract class Message<T> extends Req {

    private MessageType messageType;         // 消息类型
    private Long fromUserId;                 // 消息发送者
    private T content;
    private byte[] bytes;                    // 其它信息

    public Long getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(Long fromUserId) {
        this.fromUserId = fromUserId;
    }

    public MessageType getMessageType() {
        return messageType;
    }

    public void setMessageType(MessageType messageType) {
        this.messageType = messageType;
    }

    public T getContent() {
        return content;
    }

    public void setContent(T content) {
        this.content = content;
    }

    public byte[] getBytes() {
        return bytes;
    }

    public void setBytes(byte[] bytes) {
        this.bytes = bytes;
    }
}
